<?php
/**
 * @authors alex (20779512@qq.com)
 * @date    2014-03-24 16:49:33
 * @version 1.0
 */

class AgainpayAction extends HomeAction {

    public function index(){
        $id = I('get.id');
        $map['id']=$id;
        $map['wxid'] = $this->wxid;
        $list = M('Order')->where($map)->find();
        if (!$list) {
            $this->error("订单不存在");
        }else{
            $where['order_no']=$list['order_no'];
            $detail = M('OrderDetail')->where($where)->select();
            $this->assign('detail',$detail);
            $this->assign('list',$list);
            $this->display();
        }        
    }


    //重新支付订单
    public function save(){
        $this->display();
    } 

}